package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FieldExpandMapper;
import com.ruoyi.system.domain.FieldExpand;
import com.ruoyi.system.service.IFieldExpandService;

/**
 * 字段拓展Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-26
 */
@Service
public class FieldExpandServiceImpl implements IFieldExpandService 
{
    @Autowired
    private FieldExpandMapper fieldExpandMapper;

    /**
     * 查询字段拓展
     * 
     * @param expandId 字段拓展主键
     * @return 字段拓展
     */
    @Override
    public FieldExpand selectFieldExpandByExpandId(Long expandId)
    {
        return fieldExpandMapper.selectFieldExpandByExpandId(expandId);
    }

    /**
     * 查询字段拓展列表
     * 
     * @param fieldExpand 字段拓展
     * @return 字段拓展
     */
    @Override
    public List<FieldExpand> selectFieldExpandList(FieldExpand fieldExpand)
    {
        return fieldExpandMapper.selectFieldExpandList(fieldExpand);
    }

    /**
     * 新增字段拓展
     * 
     * @param fieldExpand 字段拓展
     * @return 结果
     */
    @Override
    public int insertFieldExpand(FieldExpand fieldExpand)
    {
        return fieldExpandMapper.insertFieldExpand(fieldExpand);
    }

    /**
     * 修改字段拓展
     * 
     * @param fieldExpand 字段拓展
     * @return 结果
     */
    @Override
    public int updateFieldExpand(FieldExpand fieldExpand)
    {
        return fieldExpandMapper.updateFieldExpand(fieldExpand);
    }

    /**
     * 批量删除字段拓展
     * 
     * @param expandIds 需要删除的字段拓展主键
     * @return 结果
     */
    @Override
    public int deleteFieldExpandByExpandIds(Long[] expandIds)
    {
        return fieldExpandMapper.deleteFieldExpandByExpandIds(expandIds);
    }

    /**
     * 删除字段拓展信息
     * 
     * @param expandId 字段拓展主键
     * @return 结果
     */
    @Override
    public int deleteFieldExpandByExpandId(Long expandId)
    {
        return fieldExpandMapper.deleteFieldExpandByExpandId(expandId);
    }
}
